package com.itheima.pojo;

public class Student {
    private int id;
    private String name;
    private ChineseBook chineseBook;
    private MathBook mathBook;

    public Student() {
    }

    public Student(int id, String name, ChineseBook chineseBook, MathBook mathBook) {
        this.id = id;
        this.name = name;
        this.chineseBook = chineseBook;
        this.mathBook = mathBook;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", chineseBook=" + chineseBook +
                ", mathBook=" + mathBook +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ChineseBook getChineseBook() {
        return chineseBook;
    }

    public void setChineseBook(ChineseBook chineseBook) {
        this.chineseBook = chineseBook;
    }

    public MathBook getMathBook() {
        return mathBook;
    }

    public void setMathBook(MathBook mathBook) {
        this.mathBook = mathBook;
    }
}
